package test.spring;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class SimpleAspect {

	@Pointcut("execution(* test.spring.*.say*())")
	public void simplePointcut() { }
	
	@Before(value="simplePointcut()")
	public void simpleAdvice() throws Exception {
		
		System.out.println("Merry Christmas");
		throw new Exception("unkong");
	}
	
	
}